/**
 * Created by thomas on 2017/5/2.
 */
/**
 * Created by thomas on 2017/3/23.
 */
import React,{Component} from 'react';
const ReactDOM=require("react-dom");
import App from './contian';
import { AppContainer } from 'react-hot-loader';

// ReactDOM.render(
//     <Router />
//     ,
//     document.getElementById('contain')
// )

const render = (Component) => {
    ReactDOM.render(
            <Component/>
        ,
        document.getElementById('contain')
    );
};
render(App);

if (module.hot) {
    module.hot.accept('./contian', () => {
        render(App)
    });
}





